package com.nalai.market.v1.controller;


import com.nalai.market.v1.model.Levelone;
import com.nalai.market.v1.service.ILeveloneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author com.nalai
 * @since 2021-08-24
 */
@RestController
@RequestMapping("/v1/levelone")
public class LeveloneController {
    @Autowired
    private ILeveloneService iLeveloneService;

    @GetMapping("/findLeveloneList")
    public List<Levelone> findLevelones(){
        return iLeveloneService.findLevelones();
    }
}
